<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>账目录入</title>
    <link rel="stylesheet" href="../css/pintuer.css">
    <link rel="stylesheet" href="../css/admin.css">
    <script src="../../js/jquery.js"></script>
    <script src="../../js/pintuer.js"></script>
    <script type="text/javascript">

        var success=function () {

            alert("录入成功！");

        }
        var i=1;
        function addkj() {
            if(i==12){
                alert("已达卡机数量上限");
            }else {
                var kj = $("<input/>").attr({type: "text", name: "no" + (++i)});
                var pl = $("<p/>").attr({class: "input input-big"});
                pl.text(i + "号卡机:");
                pl.appendTo($(".kjdiv"));
                kj.appendTo(pl);
                pl.append("元");
            }
        }
        </script>
</head>
<body>
<div class="bg"></div>
<div class="container">
    <div class="line bouncein">
        <div class="xs6 xm4 xs3-move xm4-move">
            <div style="height:150px;"></div>
            <div class="media media-y margin-big-bottom">
            </div>
            <form action="/chauses_save">
                <div class="panel loginbox">
                    <div class="text-center margin-big padding-big-top"><h1>实验中学饭堂卡机记账系统</h1></div>
                    <div class="panel-body" style="padding:30px; padding-bottom:10px; padding-top:10px;">
                        <div class="form-group">
                            <div class="field field-icon-right">
                                <div class="kjdiv">
                                    <p class="input input-big">1号卡机:<input type="text" name="no1"/>元</p>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="field field-icon-right">
                                <input class="button button-block bg-main text-big input-big" type="button" value="添加卡机" onclick="addkj()"/><br/>
                            </div>
                        </div>

                    </div>

                    <div style="padding:30px;">

                        <input type="submit" class="button button-block bg-main text-big input-big" value="录入">
                    <br>
                    <a href="/chausesAction_recordlist" class="button button-block bg-main text-big input-big"  style=" text-align:center;">账目查看</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

</body>
</html>